<?php
/**
 * 极简随手记
 * ============================================================================
 * 版权所有 2024-2099 www.alipay168.cn，并保留所有权利。
 * 网站地址: https://www.alipay168.cn
 * ============================================================================
 * Author: 草上飞
 * Email: wei@alipay16.cn
 * QQ: 2719875001
 * Date: 2024/12/29
 * 描述:
 */

namespace app\controller\index;

use app\result\extend\CashbookResult;
use think\App;

class PluginCashbook extends BaseIndex
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new CashbookResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->list($this->user_id, $this->param));
    }

    public function get()
    {
        data_exit_json($this->objResult->get($this->user_id, $this->param));
    }

    public function save()
    {
        data_exit_json($this->objResult->save($this->user_id, $this->param));
    }

    public function delete()
    {
        data_exit_json($this->objResult->delete($this->user_id, $this->param));
    }

    public function fetch()
    {
        data_exit_json($this->objResult->fetch($this->user_id, $this->param));
    }

    public function join()
    {
        data_exit_json($this->objResult->join($this->user_id, $this->param));
    }

    public function user_list()
    {
        data_exit_json($this->objResult->user_list($this->user_id, $this->param));
    }

    public function unbind_user()
    {
        data_exit_json($this->objResult->unbind_user($this->user_id, $this->param));
    }
}
